<?php

        $routes->Map("/",
                array(
                        'controller' => 'Main',
                        'action' => 'Index'
                ) );



        $routes->Map("/user",
                array(
                        'controller' => 'UserController',
                        'action' => 'Profile'
                ) );
                
        $routes->Map("/test",
                array(
                        'controller' => 'Main',
                        'action' => 'Test'
                ) );                
                
        $routes->Map("/news",
                array(
                        'controller' => 'NewsController',
                        'action' => 'News'
                ) );                  
                
        $routes->Map("/:developer_alias",
                array(
                        'controller' => 'Main',
                        'action' => 'Index'
                ) );                  
                
        $routes->Map("/news/:page",
                array(
                        'controller' => 'NewsController',
                        'action' => 'News'
                ) );                 
                
	   	$routes->Map("/user/:action",        // :action in (login, logout, register)
                array(
                        'controller' => 'UserController',
                        'subaction'  => ''
                ) );

        $routes->Map("/user/:action/:subaction",        // :action in (login, logout, register)
                array(
                        'controller' => 'UserController'
                ) );

        $routes->Map("/help",
                array(
                        'controller' => 'Main',
                        'action' => 'Help'
                ) );
		
		$routes->Map("/faq",
                array(
                        'controller' => 'FAQ',
                        'action' => 'Index'
                ) );
				
		$routes->Map("/faq/:action", 				//action ask
                array(
                        'controller' => 'FAQ',
                        'subaction' => ''
                ) );
	
				
		$routes->Map("/faq/:action/:subaction",        // :action ask
                array(
                        'controller' => 'FAQ'
                ) );
		
		$routes->Map("/admin",
                array(
                        'controller' => 'Admin',
                        'action' => 'Index'
                ) );
				
				
		$routes->Map("/admin/:action",        // :action in (questions, faq, mycars)
                array(
                        'controller' => 'Admin',
						'subaction' => ''
                ) );	
                
        $routes->Map("/admin/cars/add",        
                array(
                        'controller' => 'Admin',
                        'action' => 'AddCar'
                ) );
        
         $routes->Map("/admin/cars/add/:subaction",  //:subaction in (check)      
                array(
                        'controller' => 'Admin',
                        'action' => 'AddCar'
                ) );
        $routes->Map("/admin/cars/:status",        // :status in (salon, asorder)
                array(
                        'controller' => 'Admin',
                        'action' => 'CarList'
                ) );
                
        $routes->Map("/admin/car/:infoId",        
                array(
                        'controller' => 'Admin',
                        'action' => 'CarInfo'
                ) );	
                
                       
        $routes->Map("/admin/car/:infoId/:command",    //command in (public, remove, archive, save)      
                array(
                        'controller' => 'Admin',
                        'action' => 'CarAction',
						'subaction' => ''
                ) );				
					
				
		$routes->Map("/admin/question/:qid",        
                array(
                        'controller' => 'Admin',
						'action' => 'Question',
						'subaction' => ''
                ) );	

		$routes->Map("/admin/question/:qid/:subaction",        
                array(
                        'controller' => 'Admin',
						'action' => 'Question'
                ) );				

		$routes->Map("/admin/:action/:subaction",        // :action ask
                array(
                        'controller' => 'Admin'
                ) );
                
                        
        $routes->Map("/cars",
                array(
                        'controller' => 'Cars',
                        'action' => 'Index'
                ) );
                
        $routes->Map("/cars/:status",        // :status in (salon, asorder, byowner)
                array(
                		'action' => 'CarList',
                        'controller' => 'Cars',
						'developer' => ''
                ) );	
                
        $routes->Map("/cars/:status/:developer",        
                array(
                        'action' => 'CarList',
                		'controller' => 'Cars'
                ) );	
                
         $routes->Map("/car/:infoId",        
                array(
                        'controller' => 'Cars',
                        'action' => 'CarInfo'
                ) );	
				
        $routes->Map("/news/editor",        
                array(
                        'action' => 'ShowEditor',
                		'controller' => 'NewsController'
                ) );					
                
        $routes->Map("/news/editor/:news_id",        
                array(
                        'action' => 'ShowEditor',
                		'controller' => 'NewsController'
                ) );					                
                
        $routes->Map("/news/editor/:news_id/remove",        
                array(
                        'action' => 'Remove',
                		'controller' => 'NewsController'
                ) );					                   

        $routes->Map("/news/editor/check",        
                array(
                        'action' => 'Check',
                		'controller' => 'NewsController'
                ) );		                
                
                
                


        $routes->Map("/article/editor",        
                array(
                        'action' => 'ShowEditor',
                		'controller' => 'ArticleController'
                ) );					
                
                
        $routes->Map("/article/:article_link",        
                array(
                        'action' => 'ShowArticle',
                		'controller' => 'ArticleController'
                ) );					                
                                            
                
        $routes->Map("/article/editor/:art_id",        
                array(
                        'action' => 'ShowEditor',
                		'controller' => 'ArticleController'
                ) );					                
                
        $routes->Map("/article/editor/:art_id/remove",        
                array(
                        'action' => 'Remove',
                		'controller' => 'ArticleController'
                ) );					                   

        $routes->Map("/article/editor/check",        
                array(
                        'action' => 'Check',
                		'controller' => 'ArticleController'
                ) );		                
                
                
                
?>